#ifndef _DFS_NEIGHBOURS
#define _DFS_NEIGHBOURS

#include "sglib.h"
/* Neighbours master header file */
#define MAXIPADDRESSLEN 16

/* Definitions */
struct dfs_neighbour {
	char ip_address[MAXIPADDRESSLEN];
	int sd;
	char **files_cached;
	struct dfs_neighbour *next;
};

#define NEIGHBOUR_COMPARATOR(e1, e2) (strcmp(e1->ip_address,e2->ip_address))

/* Global Variables */

struct dfs_neighbour *neighbour_list;

_PROTOTYPE(int add_to_neighbour_list,(const char *,int)								);
_PROTOTYPE(int remove_from_neighbour_list,(const char *) 							);
_PROTOTYPE(struct dfs_neighbour * get_entry_from_neighbour_list,(const char *ip)	);
_PROTOTYPE(char *get_printed_list_of_neighbours,(void)								);
#endif
